/*Copyright © 2008 Cassarin-Grand Arthur (Zoloom)

This file is part of PlayOnLinux Script Creator.

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
 
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */

#ifndef HEADER_FENP
#define HEADER_FENP

#include <QtGui>
#include <Qsci/qsciscintilla.h>

class Fenp : public QMainWindow
{
	Q_OBJECT

	public:
	
		Fenp();
		
	public slots:
	
		//GUI
		
			void closeEvent(QCloseEvent *event);
		
			void showFile(QString fileName, QString buffer);
		
			void cutText();
			void copyText();
			void pasteText();
			void undo();
  			void redo();
		
			QsciScintilla *returnCurrentTab();
		
			void openBrowserWebOfficial();
			void openBrowserWebPOL();
			void openBrowserWebDoc();
			void openBrowserWebForum();

 

		//Files
		
			int openFile(QString fileName = "");
			int saveFile(QString fileName = "");
			int saveAsFile(QString fileName = "", QString fileDestination = "");


	private:
	
		//Fenp
		
			QMdiArea *mdiMain;
			QStatusBar *sbarMain;
			int intNumberTabs;
		
			//QMdiSubWindow *subWindows[100];
			QMdiSubWindow *subWindow;
		
		//Engine
		

};


#endif
 
